package sys.service;


import com.util.PagedResult;
import sys.model.AnserKey;
import sys.model.QuestionAnser;
import sys.model.Questionnaire;

import java.sql.SQLException;
import java.util.List;
import java.util.Map;


public interface QuestionnaireService {

	int add(Questionnaire q) throws SQLException;
	int inserAnserKey(AnserKey a) throws SQLException;
	int delete(int id) throws SQLException;
	int updateQuestionnaireConfig(Questionnaire q);
	Questionnaire selectByPrimaryKey(Integer id);
	PagedResult<Questionnaire> selectView(Map map);
	PagedResult<AnserKey> selectAnserKeyView(Map map);
	Questionnaire selectByname(String name);
	AnserKey selectAnserKeyByID(Integer id);
	QuestionAnser getAnserBar(Map map);
	List<Map> selectList(Map map);
	List<Questionnaire> selectTitleList();


}
